@Echo off

@SET GACUTIL="E:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe"

IF %1%==Release (Goto PrepareBuildLocation) ELSE (Goto PrepareDebugEnv)

Goto End

*** REM prepare build location start

:PrepareBuildLocation

@SET ListCleanupBuildDir=..\..\Build\ListCleanup

Echo Copy the dll to bin directory
xcopy /Y /I bin\%1\Codeplex.SPCleanup.SPUtilities.dll %ListCleanupBuildDir%\bin\*

Goto End

*** REM prepare build location end

:PrepareDebugEnv
Echo Installing Codeplex.SPCleanup.SPUtilities.dll in GAC
%GACUTIL% -if bin\%1\Codeplex.SPCleanup.SPUtilities.dll

REM xcopy /e /y bin\%1\Codeplex.SPCleanup.SPUtilities.pdb C:\WINNT\assembly\GAC_MSIL\Codeplex.SPCleanup.SPUtilities\1.0.0.0__36ab4294bd41212b

Goto End

:End